package thread.upgrade;

import org.openjdk.jol.info.ClassLayout;


public class Test {
    private String bbbb = "1234";

    public static void main(String[] args) {

        Object a = new Object();
        System.out.println(ClassLayout.parseInstance(a).toPrintable());

        synchronized (a) {
            System.out.println(ClassLayout.parseInstance(a).toPrintable());
        }

        a.hashCode();
        System.out.println(ClassLayout.parseInstance(a).toPrintable());


        try {
            a.wait();
        } catch (Exception e) {
        }
        synchronized (a) {
            System.out.println(ClassLayout.parseInstance(a).toPrintable());
        }
    }
}
